// pages/index/comps/social/social.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        articalType: String,
        articalList: Array,
        isShow: Boolean
    },

    /**
     * 组件的初始数据
     */
    data: {
        videoPlayIndex: null
    },

    /**
     * 组件的方法列表
     */
    methods: {
        goMore: function() {
            wx.switchTab({
                url: '/pages/socialSystem/articalList/articalList'
            })
        },
        navClick: function(e) {
            this.triggerEvent('navClick', e.currentTarget.dataset.type)
        },
        goArticalDetail: function(e) {
            wx.navigateTo({
                url: '/pages/communitySystem/detail/detail?id=' + e.currentTarget.dataset.id
            })
        },
        donothing: function() {
            this.triggerEvent('donothing')
        },
        videoPlay: function(e) {
            this.triggerEvent('videoPlay', e.currentTarget.dataset.index)
        }
    }
})